package com.zhiyun.mapper;

import com.zhiyun.domain.Quickresponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuickresponseMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Quickresponse record);

    Quickresponse selectByPrimaryKey(Integer id);

    int updateByPrimaryKey(Quickresponse record);

    List<Quickresponse> selectByUserAndCourse(@Param("loginUserId") int loginUserId,@Param("courseId") int courseId);

    int updateByPrimaryKeyWithNull(Quickresponse quickresponse);

    List<Quickresponse> selectByCourseId(Integer courseId);
}